TCP or IP


TCP/IP model

Here, hierarchical means that each upper-layer protocol is supported by two or more lower-level protocols.

Functions of TCP/IP layers:

TCP/IP model

Network Access Layer

Internet layer

Following are the protocols used in this layer are:

IP Protocol: IP protocol is used in this layer, and it is the most significant part of the entire TCP/IP suite.

Following are the responsibilities of this protocol:

ARP Protocol
ICMP Protocol

Transport Layer "The transport layer is responsible for the reliability, flow control, and correction of data which is being sent over the network."

The two protocols used in the transport layer are User Datagram protocol and Transmission control protocol.

  • User Datagram Protocol (UDP)
    • It provides connectionless service and end-to-end delivery of transmission.
    • It is an unreliable protocol as it discovers the errors but not specify the error.
    • User Datagram Protocol discovers the error, and ICMP protocol reports the error to the sender that user datagram has been damaged.
    • UDP consists of the following fields:
      Source port address: The source port address is the address of the application program that has created the message.
      Destination port address: The destination port address is the address of the application program that receives the message.
      Total length: It defines the total number of bytes of the user datagram in bytes.
      Checksum: The checksum is a 16-bit field used in error detection.
    • UDP does not specify which packet is lost. UDP contains only checksum; it does not contain any ID of a data segment.
TCP/IP model
TCP/IP model
  • Transmission Control Protocol (TCP)
    • It provides a full transport layer services to applications.
    • It creates a virtual circuit between the sender and receiver, and it is active for the duration of the transmission.
    • TCP is a reliable protocol as it detects the error and retransmits the damaged frames. Therefore, it ensures all the segments must be received and acknowledged before the transmission is considered to be completed and a virtual circuit is discarded.
    • At the sending end, TCP divides the whole message into smaller units known as segment, and each segment contains a sequence number which is required for reordering the frames to form an original message.
    • At the receiving end, TCP collects all the segments and reorders them based on sequence numbers.

Application Layer

  • An application layer is the topmost layer in the TCP/IP model.
  • It is responsible for handling high-level protocols, issues of representation.
  • This layer allows the user to interact with the application.
  • When one application layer protocol wants to communicate with another application layer, it forwards its data to the transport layer.
  • There is an ambiguity occurs in the application layer. Every application cannot be placed inside the application layer except those who interact with the communication system. For example: text editor cannot be considered in application layer while web browser using HTTP protocol to interact with the network where HTTP protocol is an application layer protocol.

Following are the main protocols used in the application layer:

  • HTTP: HTTP stands for Hypertext transfer protocol. This protocol allows us to access the data over the world wide web. It transfers the data in the form of plain text, audio, video. It is known as a Hypertext transfer protocol as it has the efficiency to use in a hypertext environment where there are rapid jumps from one document to another.
  • SNMP: SNMP stands for Simple Network Management Protocol. It is a framework used for managing the devices on the internet by using the TCP/IP protocol suite.
  • SMTP: SMTP stands for Simple mail transfer protocol. The TCP/IP protocol that supports the e-mail is known as a Simple mail transfer protocol. This protocol is used to send the data to another e-mail address.
  • DNS: DNS stands for Domain Name System. An IP address is used to identify the connection of a host to the internet uniquely. But, people prefer to use the names instead of addresses. Therefore, the system that maps the name to the address is known as Domain Name System.
  • TELNET: It is an abbreviation for Terminal Network. It establishes the connection between the local computer and remote computer in such a way that the local terminal appears to be a terminal at the remote system.
  • FTP: FTP stands for File Transfer Protocol. FTP is a standard internet protocol used for transmitting the files from one computer to another computer.